<div class="panel-heading"><span class="titulo_modulo">Nuevo</span></div>
<?php echo $this->Form->create('Modelo', array('id' => 'modelo', 'inputDefaults' => array('div' => false, 'label' => false))); ?>
<table class="form_registros">
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td>Marca</td>
        <td><?php echo $this->Form->select('marca_id', $listadoMarcas, array('empty' => 'Seleccione')); ?></td>
    </tr>
    <tr>
        <td>Nombre</td>
        <td><?php echo $this->Form->input('nombre', array('type' => 'text')); ?></td>
    </tr>
    <!--tr>
        <td>Estado</td>
        <td><?php //echo $this->Form->select('estatus', $estados, array('empty' => 'Seleccione')); ?></td>
    </tr-->
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
        <td colspan="2" class="centro">
            <?php echo $this->Form->button('Guardar', array('class' => 'btn_accion guardar')); ?>&nbsp;
            <?php echo $this->Html->link('Cancelar', array('controller' => 'Modelos', 'action' => 'index'), array('class' => 'btn_accion cancelar')) ?>
        </td>
    </tr>
</table>
<?php
    echo $this->Form->end();

    $this->Validador->setFormulario('modelo');
    $this->Validador->setRules('data.Modelo.marca_id', array('required' => array('value' => true)));
    $this->Validador->setRules('data.Modelo.nombre', array('required' => array('value' => true)));
    //$this->Validador->setRules('data.Modelo.estatus', array('required' => array('value' => true)));
    $this->Validador->printScript(true);
?>
<script type="text/javascript">
    $(function(){
        $("form#modelo").tooltip({
            show: false,
            hide: false
        });
    });
</script>